package com.proxy.scanandcheck.common.main;

import java.io.FileNotFoundException;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;

import org.jsoup.nodes.Document;

import com.proxy.scanandcheck.checker.controller.ProxyCheckingController;


public class Main {

	/**
	 * @param args
	 * @throws SQLException 
	 * @throws FileNotFoundException 
	 * @throws ClassNotFoundException 
	 */
	public static void main(String[] args) throws SQLException, FileNotFoundException  {
		ProxyCheckingController proxyCheckingController = new ProxyCheckingController();
		String [] keywords = {"cnn","nba","good"};
		
		List<Document> documentList = proxyCheckingController.startCheck(Arrays.asList(keywords));
		
		for (Document document : documentList) {
			System.out.println("result:\n"+document);
		}
		System.exit(0);
	}

}
